''' 练习 '''
import random

'''
#1，猜数字，程序随机生成一个0~100的随机整数，以循环的方式让用户来猜，
#共10次猜的机会，每一次给出猜大了，猜小了，猜对了的提示，猜对时停止循环
'''
# import random
# rand = random.randrange(101)
# # print(rand)
# print("++++++++++++猜数字小游戏开始了++++++++++++")
# print("[你一共有10次机会哟，加油吧！]")
#
#
# for n in range(10):
#     num = int(input("请输入一个1-100之间的整数："))
#     if 9-n ==0:
#         break
#     elif num == rand :
#         print("恭喜你猜对了！！！你也太厉害吧！！！")
#         break
#     elif num < rand:
#         print("猜小了，别灰心再来一次吧，你还有%d次机会" % (9-n))
#     elif num > rand :
#         print("猜大了，别灰心再来一次吧，你还有%d次机会" % (9-n))
#
# if num != rand:
#     print("很遗憾失败了，次数已用完！")




'''
#2、模拟斗地主的发牌逻辑
#一共54个牌，三个人，每人17张牌，另外保留三张底牌
kind = ["\u2660","\u2663","\u2665","\u2666"]
for i in kind:
    print(i)
'''

kind = ["\u2660","\u2663","\u2665","\u2666"]
number = ['A','2','3','4','5','6','7','8','9','10','J','Q','K']
L = [x+y for x in kind for y in number]+['大王','小王']
# print(len(L))

random.shuffle(L)
input("按回车给第一个人发牌")
one = L[:17]
print(one)
input("按回车给第二个人发牌")
two = L[17:34]
print(two)
input("按回车给第三个人发牌")
three = L[34:51]
print(three)
input("三张底牌")
dp = L[51:]
print(dp)






